﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class InstanceInPool
{
    public GameObject GameObject{get;set;}
    public bool IsEnable{get;set;}

    public void TryPushInstanceInPool()
    {
        if(!GameObject.activeSelf)
            IsEnable = false;
    }

    public static InstanceInPool CreateInstance(GameObject instance,bool enable)
    {
        var create = new InstanceInPool(){GameObject = instance,IsEnable = true};
        return create;
    }
}
